package com.lagou.dao;

import com.lagou.domain.*;

import java.util.List;

public interface RoleDao {
    public abstract List<Role> findAllRole(Role role);
    public abstract void saveRole(Role role);
    public abstract void updateRole(Role role);
    public abstract List<Menu> findSubMenuListByPid(int pid);
    public abstract List<String> findMenuByRoleId(int roleId);
    public abstract void roleContextMenu(Role_menu_relation role_menu_relation);
    public abstract void deleteRoleContextMenu(int roleId);
    public abstract void deleteRole(int id);
    public abstract void deleteRoleContextResource(int roleId);
    public abstract List<Integer> findResourceIdRoleId(int id);
    public abstract List<ResourceCategory> findResourceCategoryById(List<Integer> list);
    public abstract List<Resource> findResourceByCategoryIdAndRid(ResourceCategoryVo resourceCategoryVo);
    public abstract void roleContextResource(Role_Resource_Relation role_resource_relation);
}
